package cn.edu.nju.software.zp13.client.assignment9UsingJAXB.assignment4Refactoring.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="课程成绩列表")
public class CourseScoreList{
	private CourseScoreWithManyScores[] cs;

	@XmlElement(name="课程成绩")
	public CourseScoreWithManyScores[] getCs() {
		return cs;
	}

	public void setCs(CourseScoreWithManyScores[] cs) {
		this.cs = cs;
	}
	
	public void add(List<CourseScoreWithManyScores> cs){
		this.cs=new CourseScoreWithManyScores[cs.size()];
		for(int i=0;i<cs.size();i++)
			this.cs[i]=cs.get(i);
	}

}
